package com.zkthink.ceres.product.dto;

import java.time.LocalDateTime;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 专题表
 * </p>
 *
 * @author JustArgo
 * @since 2020-09-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SubjectPageDTO", description = "专题表")
public class SubjectPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 专题key
     */
    @ApiModelProperty(value = "专题key")
    @NotEmpty(message = "专题key不能为空")
    @Length(max = 255, message = "专题key长度不能超过255")
    private String subjectKey;
    /**
     * 专题名称
     */
    @ApiModelProperty(value = "专题名称")
    @NotEmpty(message = "专题名称不能为空")
    @Length(max = 32, message = "专题名称长度不能超过32")
    private String title;
    /**
     * banner图片，可以存储多张
     */
    @ApiModelProperty(value = "banner图片，可以存储多张")
    @Length(max = 65535, message = "banner图片，可以存储多张长度不能超过65,535")
    private String banner;
    /**
     * 专题小图
     */
    @ApiModelProperty(value = "专题小图")
    @Length(max = 255, message = "专题小图长度不能超过255")
    private String smallImage;
    /**
     * 子标题
     */
    @ApiModelProperty(value = "子标题")
    @NotEmpty(message = "子标题不能为空")
    @Length(max = 32, message = "子标题长度不能超过32")
    private String subTitle;
    /**
     * 是否删除 1-删除 0-不删除
     */
    @ApiModelProperty(value = "是否删除 1-删除 0-不删除")
    @NotNull(message = "是否删除 1-删除 0-不删除不能为空")
    private Boolean isDelete;

}
